import { ApiCall } from "tsrpc";
import { ReqOpenGiftBox, ResOpenGiftBox } from "../../../shared/master/word/PtlOpenGiftBox";
import { player } from "../../../model/fight/body/player";

export default async function (call: ApiCall<ReqOpenGiftBox, ResOpenGiftBox>) {
    call.succ({})
    let user = call.req._player as player;
    let _cell =  user.getPosition();
    _cell.openGift(user)
}